package com.schedule.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.schedule.mapper.CompanyMapper;
import com.schedule.model.Company;

@Repository
public class CompanyDao implements CompanyMapper{
	@Autowired
	CompanyMapper companyMapper;

	@Override
	public List<Company> findAll() {
		return companyMapper.findAll();
	}

	@Override
	public void addCompany(Company company) {
		companyMapper.addCompany(company);
	}

	@Override
	public void updateCompany(Company company) {
		companyMapper.updateCompany(company);
	}

	@Override
	public void deleteCompany(String companyId) {
		companyMapper.deleteCompany(companyId);
	}

	@Override
	public Company findById(int companyId) {
		return companyMapper.findById(companyId);
	}
}
